<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="AnswersViewDlg" widgetVar="AnswersViewDialog" modal="true" resizable="false"  appendTo="@(body)" header="#{myBundle.ViewAnswersTitle}" closeOnEscape="true">

            <h:form id="AnswersViewForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{answersController.selected != null}">

                        <h:outputText value="#{myBundle.ViewAnswersLabel_id}"/>
                        <h:outputText value="#{answersController.selected.id}" title="#{myBundle.ViewAnswersTitle_id}"/>

                        <h:outputText value="#{myBundle.ViewAnswersLabel_tid}"/>
                        <h:outputText value="#{answersController.selected.tid}" title="#{myBundle.ViewAnswersTitle_tid}"/>

                        <h:outputText value="#{myBundle.ViewAnswersLabel_fid}"/>
                        <h:outputText value="#{answersController.selected.fid}" title="#{myBundle.ViewAnswersTitle_fid}"/>

                        <h:outputText value="#{myBundle.ViewAnswersLabel_user}"/>
                        <h:outputText value="#{answersController.selected.user}" title="#{myBundle.ViewAnswersTitle_user}"/>

                        <h:outputText value="#{myBundle.ViewAnswersLabel_topic}"/>
                        <h:outputText value="#{answersController.selected.topic}" title="#{myBundle.ViewAnswersTitle_topic}"/>

                        <h:outputText value="#{myBundle.ViewAnswersLabel_text}"/>
                        <h:outputText value="#{answersController.selected.text}" title="#{myBundle.ViewAnswersTitle_text}"/>

                        <h:outputText value="#{myBundle.ViewAnswersLabel_created}"/>
                        <h:outputText value="#{answersController.selected.created}" title="#{myBundle.ViewAnswersTitle_created}">
                            <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                        </h:outputText>
                    </p:panelGrid>
                    <p:commandButton value="#{myBundle.Close}" onclick="AnswersViewDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
